export function filterNull(obj = {}) {
	const temp = {};
	Object.keys(obj).forEach(key => {
		const val = obj[key];
		if (!val && val !== 0) {
			return;
		}

		if (Array.isArray(val) && val.length === 0) {
			return;
		}

		temp[key] = val;
	});

	return temp;
}